/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under Ultimate Liberty license
  * SLA0044, the "License"; You may not use this file except in compliance with
  * the License. You may obtain a copy of the License at:
  *                             www.st.com/SLA0044
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "comm.h"
#include "usrtask.h"
#include "myreg.h"
#include "TIMER.H"
#include "External_input.h"
#include "chip_flash.h"
#include "att7022.h"
#include "angular_displacement.h"
#include "cp.h"
#include "time.h"
#include "ds1338.h"
#include "FreeRTOS.h"
#include "task.h"
#include "led.h"
#include "stdio.h"
#include <stdlib.h>
#include <string.h>
/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define DI2_Pin GPIO_PIN_6
#define DI2_GPIO_Port GPIOA
#define IO1_Pin GPIO_PIN_0
#define IO1_GPIO_Port GPIOB
#define IO1_EXTI_IRQn EXTI0_IRQn
#define IO2_Pin GPIO_PIN_1
#define IO2_GPIO_Port GPIOB
#define IO2_EXTI_IRQn EXTI1_IRQn
#define IO3_Pin GPIO_PIN_7
#define IO3_GPIO_Port GPIOE
#define IO3_EXTI_IRQn EXTI9_5_IRQn
#define IO4_Pin GPIO_PIN_8
#define IO4_GPIO_Port GPIOE
#define IO4_EXTI_IRQn EXTI9_5_IRQn
#define LED3_Pin GPIO_PIN_9
#define LED3_GPIO_Port GPIOE
#define LED4_Pin GPIO_PIN_10
#define LED4_GPIO_Port GPIOE
#define LED5_Pin GPIO_PIN_11
#define LED5_GPIO_Port GPIOE
#define LED6_Pin GPIO_PIN_12
#define LED6_GPIO_Port GPIOE
#define LED7_Pin GPIO_PIN_13
#define LED7_GPIO_Port GPIOE
#define LED8_Pin GPIO_PIN_14
#define LED8_GPIO_Port GPIOE
#define LED9_Pin GPIO_PIN_15
#define LED9_GPIO_Port GPIOE
#define LED10_Pin GPIO_PIN_10
#define LED10_GPIO_Port GPIOB
#define SCKL_ATT_Pin GPIO_PIN_13
#define SCKL_ATT_GPIO_Port GPIOB
#define DOUT_ATT_Pin GPIO_PIN_14
#define DOUT_ATT_GPIO_Port GPIOB
#define DIN_ATT_Pin GPIO_PIN_15
#define DIN_ATT_GPIO_Port GPIOB
#define REVP_ATT_Pin GPIO_PIN_8
#define REVP_ATT_GPIO_Port GPIOD
#define IQR_ATT_Pin GPIO_PIN_9
#define IQR_ATT_GPIO_Port GPIOD
#define SLEEP_ATT_Pin GPIO_PIN_10
#define SLEEP_ATT_GPIO_Port GPIOD
#define RST_ATT_Pin GPIO_PIN_11
#define RST_ATT_GPIO_Port GPIOD
#define RLY_CTL1_Pin GPIO_PIN_8
#define RLY_CTL1_GPIO_Port GPIOC
#define RLY_CTL2_Pin GPIO_PIN_9
#define RLY_CTL2_GPIO_Port GPIOC
#define GPRS_PWR_CTL_Pin GPIO_PIN_0
#define GPRS_PWR_CTL_GPIO_Port GPIOD
#define GPRS_VDD_CTL_Pin GPIO_PIN_1
#define GPRS_VDD_CTL_GPIO_Port GPIOD
#define CTL485_Pin GPIO_PIN_5
#define CTL485_GPIO_Port GPIOD
#define IIC_SCL_Pin GPIO_PIN_6
#define IIC_SCL_GPIO_Port GPIOB
#define IIC_SDA_Pin GPIO_PIN_7
#define IIC_SDA_GPIO_Port GPIOB
#define RTC_SQW_Pin GPIO_PIN_8
#define RTC_SQW_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
